home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Shareware
/
IDimager Personal 4.2.0.3
/
setup_IDimager_Personal_V4.exe
/
{app}
/
web
/
validateregister.psc
< prev
Wrap
Text File
|
2008-06-04
|
1KB
|
63 lines
<html>
<head>
<title>Register</title>
<link rel="stylesheet" href="idimager.css" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
%include api.inc %/include
<style>
%include idimager.css %/include
</style>
</head>
%code
var
ADs: TDBXOMClientDataSet;
begin
ADs := Catalog.NewDataSet;
ADs.CommandText := 'select * from idUser where GUID = ''' + Request.Params.Values['GUID'] + ''' ';
ADs.Open;
if (not ADs.Eof) then
begin
ADs.Edit;
ADs.FieldByName('idProtected').Value := 0; // allow access
ADs.UpdateBatch ('idUser', 'GUID', arAll);
result := 'User ' + ADs.FieldByName('FullUserName').Value + ' is validated to access the web service';
// send out an e-mail
SendShortEMail (
'%var:SMTPHost',
'%var:AdminEMail',
ADs.FieldByName('EMailAddress').Value,
'',
'',
'Your access request for %var:Homepage',
'Hello,<p>' +
'Your request to access %var:Homepage is now approved.' +
'<p>Click <a href="%var:Homepage/%var:PageOffset/index.psc">here</a> to visit'
);
end
else
result := 'User not found'
ADs.Close;
ADs.Free;
end;
%/code
</body>
</html>